package com.wyp168.socket.QQ.qqclient.common;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName Message
 * @Title 消息对象
 * @Description 表示客户端和服务器端通信时的消息对象
 * @Author wyp168
 * @Date 2022/10/29 14:45
 */
public class Message implements Serializable {
    private static final long serialVersionUID = 1L;

    private String sender;          //发送者

    private String getter;          //接收者

    private String sourcePath;     //文件源路径


    private String descPath;        //文件目标路径

    private String content;         //消息内容

    private String fileName;        //问价名
    private byte[] bytes;           //文件字节数组

    private String sentTime;        //发送时间

    private String messageType;     //消息类型

    public Message(String sender, String getter, String content, String sentTime, String messageType) {
        this.sender = sender;
        this.getter = getter;
        this.content = content;
        this.sentTime = sentTime;
        this.messageType = messageType;
    }

    public Message() {
    }

    public byte[] getBytes() {
        return bytes;
    }

    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getGetter() {
        return getter;
    }

    public void setGetter(String getter) {
        this.getter = getter;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSentTime() {
        return sentTime;
    }

    public void setSentTime(String sentTime) {
        this.sentTime = sentTime;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getSourcePath() {
        return sourcePath;
    }

    public void setSourcePath(String sourcePath) {
        this.sourcePath = sourcePath;
    }

    public String getDescPath() {
        return descPath;
    }

    public void setDescPath(String descPath) {
        this.descPath = descPath;
    }

    @Override
    public String toString() {
        return "Message{" +
                "sender='" + sender + '\'' +
                ", getter='" + getter + '\'' +
                ", content='" + content + '\'' +
                ", sentTime='" + sentTime + '\'' +
                ", messageType='" + messageType + '\'' +
                '}';
    }
}
